import { changeCityTypes } from "./types";


export const city =(state="武汉",action)=>{
    const{type,payload}=action;
    switch(type){

        case changeCityTypes:
        return payload;  //解构 返回新的state
        break;

        default:
            return state
            break;
    }
  }